package com.yhl.admin.service.impl;

import com.yhl.admin.bean.City;
import com.yhl.admin.mapper.CityMapper;
import com.yhl.admin.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author yhl
 * @create 2021-06-28 10:24
 */
@Service
public class CityServiceImpl implements CityService {

    @Autowired
    CityMapper cityMapper;

    public int insertCity(City city){
        return cityMapper.insertCity(city);
    }

    public City selectCity(int id){
        return cityMapper.selectCity(id);
    }
}
